package ciyuan.Effect;

import net.minecraft.potion.Effect;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 150149
 */
@Mod.EventBusSubscriber(
        bus = Mod.EventBusSubscriber.Bus.MOD
)
public class EffectRegisterManager {

    public static List<Effect> effectList = new ArrayList<>();

    @SubscribeEvent
    public static void registerEffects(RegistryEvent.Register<Effect> event) {
        Effects effects = new Effects();
        for (Effect effect :effectList) {
            event.getRegistry().register(effect);
        }
    }
}
